<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//ZH-CN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="imagetoolbar" content="no" />
	<title>Class UI.SliderPane</title>
	<link href="../resources/API_Help.css" type="text/css" rel="stylesheet" />
</head>

<body>
<!--打印本页-->
<div class="printCurrentPage">
	<img src="../resources/image/print.gif" align="absmiddle" />&nbsp;
	<a href="ui_SliderPane_API.html" target="_blank">打印本页</a>
</div><br/>

<!--标题说明-->
<h1>Class UI.SliderPane</h1>
<b>定义于文件：</b>&nbsp;&nbsp;ui_sliderPanel.js
<div class="description">将页面对象渲染成滑动面板控件。</div><br/>
<b>基本语法</b>
<div class="syntax">var sliderPanel = new <b>UI.SliderPane</b>( { &lt; <em>id:String|Tag</em> &gt; [ , <em>width:Number</em>,&nbsp;&nbsp;<em>height:Number</em>,&nbsp;&nbsp;<em>groups:Array</em> ] } );</div>
<b>参数说明</b>
<div class="parameter">
	<ul>
		<li><em>id</em> : String|Tag</li>
		<div class="subDesc">页面滑动面板标签ID或是页面滑动面板标签对象。</div>
		<li><em>width</em> : Number</li>
		<div class="subDesc">(可选参数) 滑动面板的宽度, 默认值：180px。</div>
		<li><em>height</em> : Number</li>
		<div class="subDesc">(可选参数) 滑动面板的高度, 默认值：220px。</div>
		<li><em>groups</em> : Array</li>
		<div class="subDesc">(可选参数) 滑动面板的所有组面板初始化参数集合, 数组元素为初始化组面板的参数。</div>
		<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;初始化组面板的参数语法: { &lt; <em>text:String</em> &gt; [ , <em>icon:String</em> ] }</div>
		<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;groups = [ 组面板参数1, 组面板参数2, 组面板参数3, ...];</div>
	</ul>
</div>
<b>页面标签对象原型</b>
<div class="parameter">
	&lt;div&gt;&lt;/div&gt;
</div>
<b>依赖关系</b>
<div class="parameter">
	<a href="core_API.html">core.js</a>　　<a href="#">webui.js</a>
</div><br/>
<a href="#properties">相关属性</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#methods">相关方法</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#events">相关事件</a>&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="#examples">应用示例</a>
<hr>

<!--相关属性-->
<a name="properties"></a>
<h2>相关属性</h2>
<table width="100%" cellspacing="0">
	<tbody>
		<tr>
			<td class="tableHead" width="83%">所有属性</td>
			<td class="tableHead" width="17%">所属类</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#UI.SliderPane.dom" class="methodLink">UI.SliderPane.dom</a>&nbsp;:&nbsp;&lt;div&gt;<br/>
				滑动面板控件的页面标签对象。
			</td><td class="tableLineRight">UI.SliderPane</td>
		</tr>
	</tbody>
</table>

<!--相关方法-->
<a name="methods"></a>
<h2>相关方法</h2>
<table width="100%" cellspacing="0">
	<tbody>
		<tr>
			<td class="tableHead" width="83%">所有方法</td>
			<td class="tableHead" width="17%">所属类</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#addGroup" class="methodLink">addGroup</a>( <em>group:Object</em> )&nbsp;:&nbsp;none<br/>
				向滑动面板中添加一个组面板。
			</td><td class="tableLineRight">UI.SliderPane</td>
		</tr>
		<tr>
			<td class="tableLineLeft alt">
				<a href="#addItems" class="methodLink">addItems</a>( <em>index:Number</em>,&nbsp;&nbsp;<em>items:Array</em> )&nbsp;:&nbsp;none<br/>
				向index所对应的组面板中添加功能项。
			</td><td class="tableLineRight alt">UI.SliderPane</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#addPanel" class="methodLink">addPanel</a>( <em>index:Number</em>,&nbsp;&nbsp;<em>panel:String|Tag</em> )&nbsp;:&nbsp;none<br/>
				添加一个自定义面板到index所对应的组面板中。
			</td><td class="tableLineRight">UI.SliderPane</td>
		</tr>
		<tr>
			<td class="tableLineLeft alt">
				<a href="#removeAll" class="methodLink">removeAll</a>()&nbsp;:&nbsp;none<br/>
				清空滑动面板。
			</td><td class="tableLineRight alt">UI.SliderPane</td>
		</tr>
		<tr>
			<td class="tableLineLeft">
				<a href="#select" class="methodLink">select</a>( <em>index:Number</em> )&nbsp;:&nbsp;none<br/>
				设置index所对应的面板为当前面板。
			</td><td class="tableLineRight">UI.SliderPane</td>
		</tr>
		<tr>
			<td class="tableLineLeft alt">
				<a href="#setSize" class="methodLink">setSize</a>( <em>width:Number</em>,&nbsp;&nbsp;<em>height:Number</em> )&nbsp;:&nbsp;none<br/>
				设置滑动面板的大小。
			</td><td class="tableLineRight alt">UI.SliderPane</td>
		</tr>
	</tbody>
</table>

<!--相关事件-->
<a name="events"></a>
<h2>相关事件</h2>
<div class="properties">本类无相关事件。</div><br/>

<hr>

<!--相关属性的详细说明-->
<h2>本类属性的详细说明</h2>
<div class="detailWrap">

<a name="UI.SliderPane.dom"></a>
<div class="mdetail">
	<h3>UI.SliderPane.dom</h3><br/>
	<div class="mdetailDetails">
		滑动面板控件的页面标签对象。<br/>
		通过 dom 属性可直接对滑动面板进行操作。
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

</div><br/>

<!--相关方法的详细说明-->
<h2>本类方法的详细说明</h2>
<div class="detailWrap">

<a name="addGroup"></a>
<div class="mdetail">
	<h3>addGroup</h3>
	<div class="functionDefine">public function addGroup( group:Object )</div>
	<div class="mdetailDetails">
		向滑动面板中添加一个组面板。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>group</em> : Object</li>
			<div class="subDesc">参数 group 为新添加组面板的参数。</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;新添加成员项的参数语法：{ <em>text:String</em>,&nbsp;&nbsp;<em>icon:String</em> }</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;text : 组面板的文本标题</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;icon : 组面板图标的URL地址</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

<a name="addItems"></a>
<div class="mdetail alt">
	<h3>addItems</h3>
	<div class="functionDefine">public function addItems( index:Number, items:Array )</div>
	<div class="mdetailDetails">
		向index所对应的组面板中添加功能项。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>index</em> : Number</li>
			<div class="subDesc">组面板的索引号。</div>
			<li><em>items</em> : Array</li>
			<div class="subDesc">要添加功能项的参数集合, 数组元素为初始化功能项的参数。</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;items = [ 功能项参数1, 功能项参数2, 功能项参数3, ...];</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;初始化功能项的参数语法: { <em>text:String</em>,&nbsp;&nbsp;<em>icon:String</em>,&nbsp;&nbsp;<em>action:Function</em> }</div>
			<div class="subDesc">&nbsp;&nbsp;&nbsp;&nbsp;注: 当择功能项被选中时, 控件会自动将功能项文本做为参数调用 action 方法。</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

<a name="addPanel"></a>
<div class="mdetail">
	<h3>addPanel</h3>
	<div class="functionDefine">public function addPanel( index:Number, panel:String|Tag )</div>
	<div class="mdetailDetails">
		添加一个自定义面板到index所对应的组面板中。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>index</em> : Number</li>
			<div class="subDesc">组面板的索引号。</div>
			<li><em>panel</em> : String|Tag</li>
			<div class="subDesc">自定义面板的标签ID或标签对象。</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

<a name="removeAll"></a>
<div class="mdetail alt">
		<h3>removeAll</h3>
	<div class="functionDefine">public function removeAll()</div>
	<div class="mdetailDetails">清空滑动面板。</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul><li>无</li></ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

<a name="select"></a>
<div class="mdetail">
	<h3>select</h3>
	<div class="functionDefine">public function select( index:Number )</div>
	<div class="mdetailDetails">
		设置index所对应的面板为当前面板。
	</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>index</em> : Number</li>
			<div class="subDesc">组面板的索引号。</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

<a name="setSize"></a>
<div class="mdetail alt">
	<h3>setSize</h3>
	<div class="functionDefine">public function setSize( width:Number, height:Number )</div>
	<div class="mdetailDetails">设置滑动面板的大小。</div><br/>
	<div class="mdetailDetails"><b>参数</b>
		<ul>
			<li><em>width</em> : Number</li>
			<div class="subDesc">滑动面板的宽度, 默认值: 180px。</div>
			<li><em>height</em> : Number</li>
			<div class="subDesc">滑动面板的高度, 默认值: 220px。</div>
		</ul>
		<b>返回值</b>
		<ul><li>无</li></ul>
	</div>
	<div class="footer since">@since JSR2.0&nbsp;&nbsp;&nbsp;&nbsp;<a href="ui_SliderPane_API.html">Return</a></div><br/>
</div>

</div><br/>

<!--应用示例-->
<a name="examples"></a>
<h2>应用示例</h2>
<div class="properties"><a href="../Example/ui_SliderPane.html" target="_blank">ui_SliderPane.html</a></div><br/>

<!--页脚-->
<hr>
<div class="footer">JSR - Copyright &copy; 2007-2008 Jsr JS, LLC<br/>All rights reserved.</div>
</body>
</html>
